/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pkwserver;

import java.net.URLEncoder;

/**
 *
 * @author Pawel
 */
public class XMLMessage {
    String formattedMessage;
    public XMLMessage(String str) throws java.io.UnsupportedEncodingException {
        String out = URLEncoder.encode(str, "UTF-8");
        formattedMessage = out + "\n";
    }
    
    @Override
    public String toString() {
        return formattedMessage;
    }
}
